//
//  DBManager.h
//  LoginAndRegisterDemo
//
//  Created by lanou3g on 16/4/26.
//  Copyright © 2016年 liu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JaneHomeListModel.h"
@interface DBManager : NSObject

/// 单例
+ (instancetype)shareManager;

/// 打开数据库
- (void)openDB;

/// 创建表
- (void)createTable;

/// 插入数据
- (void)insertModel:(JaneHomeListModel *)model html:(NSString *)htmlStr;


/// 收藏
- (void)collectDetailModel:(JaneHomeListModel *)dModel html:(NSString *)htmlStr;

/// 取消收藏
- (void)cancelCollectionArticle:(NSString *)contentID;

/// 查询所有收藏的内容
- (NSArray *)selectAllCollection;

/// 判断是否收藏过
- (BOOL)hasCollect:(NSString *)contentID;



@end
